package com.qqtech.qquan.idle.dao;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.qqtech.core.frame.dao.BaseDaoImpl;
import com.qqtech.qquan.idle.model.*;

@Repository
public class IdleBaseDaoImpl extends BaseDaoImpl<IdleBase> implements IdleBaseDao {
	public static final Logger log = LoggerFactory.getLogger(IdleBaseDaoImpl.class);

	@Override
	public int updatePv(Integer id) {
		return sqlSessionTemplate.update(getSqlName("updateAddPv"), id);
	}

	@Override
	public int updateMinusQuantity(Integer id) {
		return sqlSessionTemplate.update(getSqlName("updateMinusQuantity"), id);
	}

	@Override
	public int updateAddQuantity(Integer id) {
		return sqlSessionTemplate.update(getSqlName("updateAddQuantity"), id);
	}
	
}
